package ru.usu.gv.utils.generators;

import java.util.ArrayList;
import java.util.List;

/**
 @author Sergey Pupyrev 
 14.05.2007
 */

public class GraphGeneratorManager
{
    private static final GraphGeneratorManager INSTANCE = new GraphGeneratorManager();

    private GraphGeneratorManager()
    {
    }

    public static GraphGeneratorManager getInstance()
    {
        return INSTANCE;
    }

    private List<IGraphGenerator> generators = new ArrayList<IGraphGenerator>();

    public void addGenerator(IGraphGenerator graphGenerator)
    {
        generators.add(graphGenerator);
    }

    public IGraphGenerator[] getGenerators()
    {
        return generators.toArray(new IGraphGenerator[generators.size()]);
    }
}
